<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Query
 *
 * @author juwking
 */
require_once 'BaseAccess.php';

class Query {

    private $baseAccess;
    public $result;

    public function __construct($query) {
        $this->baseAccess = new BaseAccess();
        $this->result = $this->baseAccess->query($queryString);
    }


    public function asArray() {
        $resultArray = array();
        while ($r = $this->result->fetch()) {
            array_push(&$resultArray, $r);
        }
        return $resultArray;
    }

}

?>
